import request from '@/utils/request'
const prefix = '/cecapitalexpend'
// 加载全部列表
export function queryList(data, page, size) {
  return request({
    url: `${prefix}/receiptrule/search/${page}/${size}`,
    method: 'post',
    data
  })
}
// 根据id查询
export function queryById(id) {
  return request({
    url: `${prefix}/receiptrule/${id}`,
    method: 'GET'
  })
}
// 编辑
export function editData(data, id) {
  return request({
    url: `${prefix}/receiptrule/${id}`,
    method: 'PUT',
    data
  })
}
// 根据条件查询单据类型
export function receipttypeList(data) {
  return request({
    url: `${prefix}/receipttype/search`,
    method: 'POST',
    data: {}
  })
}
